import request from "@/utils/http/axios";

class OrderAPI {
    static createOrder(data){
        return request({
            url: "/order/create",
            data: data,
            method: "post"
        })
    }
    static payOrder(barCode, orderNo, amount){
        return request({
            url: "/order/pay",
            params: {barCode, orderNo, amount},
            method: "get"
        })
    }
}

export default OrderAPI;